<template>
  <el-container class="w-full h-[100vh]">
    <!-- 侧边菜单 -->
    <el-aside>
      <div class="h-full flex flex-col" :style="{ width: collapse ? 'var(--sidebar-width-collapsed)' : 'var(--sidebar-width)' }">
        <AppLogo />
        <el-scrollbar class="!h-[calc(100%-var(--sidebar-height))]">
          <AppMenu :menu-list="menus" base-path="/" />
        </el-scrollbar>
      </div>
    </el-aside>
    <el-container>
      <!-- 头部 -->
      <el-header class="!h-[var(--sidebar-height)] !p-0">
        <AppHeader />
      </el-header>
      <!-- 主体内容 -->
      <AppView />
    </el-container>
  </el-container>
</template>
<script setup lang="ts">
import { useAppStore, useAuthStore } from '@/stores'
const appStore = useAppStore()
const authStore = useAuthStore()
const collapse = computed(() => appStore.getCollapse)
const menus = computed(() => authStore.getAuthRoutes) // 混合布局左侧菜单
</script>
<style lang="scss" scoped>
@import '../index';
</style>
